import { createApp } from 'vue'
import '@fortawesome/fontawesome-free/css/all.css'
import './style.css'
import App from './App.vue'
import {pinia} from '@/store/index';

import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import './assets/styles/index.scss'
import router from './router/index'

const app = createApp(App)
//全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(pinia)
app.use(router)
app.use(ElementPlus, { locale: zhCn })
  
app.mount('#app')
